package com.wqc.web;

import com.wqc.common.pojo.ApiResponse;
import com.wqc.model.OrderBasic;
import com.wqc.service.OrderBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderBasicController {

    @Autowired
    private OrderBasicService orderBasicService;

    @GetMapping("/getById")
    public ApiResponse getOrderById(Integer id) {
        OrderBasic orderBasic = orderBasicService.getOrderById(id);
        return ApiResponse.ok("success",orderBasic);
    }

}
